<template>
  <div class="recommend">
    <div v-for="(item,id) in recommends" :key="id" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommends: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style>
  .recommend {
    display: flex;
    justify-content: space-around;
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 15px 0 25px;
    border-bottom: 8px solid #eee;
  }

  .recommend-item img {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
  }

</style>
